﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Board.aspx.cs" Inherits="BBS_Board" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>论坛讨论区</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
 <table cellspacing="0" cellpadding="0" width="98%" align="center" border="0">
   <tr>
     <td>
     <table style ="width :100%; height :26;" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr>
         <td style ="background-color :#ffffff;">&nbsp;&nbsp;<img id="imgIndicator" src ="images/Point02.gif" style ="width :13; height :13;" alt ="当前位置" />
           当前位置：<a href="index.aspx">论坛首页</a>-&gt;<%=SName%></td>
       </tr>
      </table>
	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
		<tr>
			<td align ="right" ><a href="newtopic.aspx"><asp:ImageButton ImageUrl="images/newtopic.gif" ID="NewTopic"  Width="72" Height="21" Runat="server" OnClick="NewTopic_Click"></asp:ImageButton></a></td>
		</tr>
	</table>
	<table width="100%" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" height="300">
	 <tr>
	  <td valign ="top">
        <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="articleid" OnRowDataBound="GridView1_RowDataBound"
            ForeColor="#333333" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"  PageSize="15" EmptyDataText="当前讨论区没有主题贴"  BorderColor="#E2EBF5" BorderStyle="Dotted" GridLines="Horizontal"  >        
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="White" ForeColor="#333333" Height="25px"  BorderColor="White" BorderStyle="Dotted" />
            <AlternatingRowStyle BackColor="White" />
            <HeaderStyle ForeColor="Black" BackColor ="#E2EBF5" Height="25px" />
                <PagerTemplate>
                    <table width="100%">
                        <tr>
                             <td align="right"><asp:Label ID="CurrentPageLabel" runat="server" ForeColor="Blue" Text=""></asp:Label></td>
                             <td style ="width :200;" width="70%" align="right">
                                <asp:LinkButton CommandName="Page" CommandArgument="First" ID="linkBtnFirst" runat="server">首页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="linkBtnPrev" runat="server">上一页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="linkBtnNext" runat="server">下一页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Last" ID="linkBtnLast" runat="server">尾页</asp:LinkButton>
                                <asp:TextBox ID="txtGoPage" class="INPUT" runat="server" MaxLength="5" Width="15px"></asp:TextBox>
                                <asp:LinkButton ID="linkBtnGo" runat="server" OnClick="linkBtnGo_Click">跳转</asp:LinkButton>
                                <asp:Label ID="labMessage" runat="server" ForeColor="Red"></asp:Label></td>                            
                        </tr>
                    </table>
                </PagerTemplate>
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="Sectionid,articleid,SectionName,Title" DataTextField ="tilename" DataNavigateUrlFormatString="Articles_List.aspx?SectionID={0}&ArticleID={1}&SectionName={2}&ArticleName={3}" HeaderText="主题" /> 
                    <asp:BoundField DataField="author" HeaderText="作者" SortExpression="author">
                        <ItemStyle Width="66px" HorizontalAlign="Center"  />
                    </asp:BoundField>
                    
                    <asp:BoundField DataField="Pots" HeaderText="人气" SortExpression="Pots">
                        <ItemStyle Width="66px" HorizontalAlign="Center"  />
                    </asp:BoundField>
                    <asp:BoundField DataField="ReNum" HeaderText="回帖" SortExpression="ReNum">
                        <ItemStyle Width="66px" HorizontalAlign="Center"  />
                    </asp:BoundField>
                    <asp:BoundField DataField="Reperson" HeaderText="最新回贴人" SortExpression="Reperson">
                        <ItemStyle Width="66px" HorizontalAlign="Center"  />
                    </asp:BoundField>
                    <asp:BoundField DataField="ReDateTime" HeaderText="回贴日期" SortExpression="ReDateTime">
                        <ItemStyle Width="120px" HorizontalAlign="Center"  />
                    </asp:BoundField>
                </Columns>
            </asp:GridView> 
	   </td>
	  </tr>
	</table>
</td></tr></table> 
    </form>
</body>
</html>
